﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Core
{
    public interface ITree
    {
        string ID
        {
            get;
        }
        string ParentID
        {
            get;
        }
        Nullable<int> OrderIndex
        {
            get;
        }
    }
    public interface ITree<T> where T : ITree
    {
        string ID
        {
            get;
        }
        string ParentID
        {
            get;
        }
        Nullable<int> OrderIndex
        {
            get;
        }
        T Parent
        {
            get;
        }
        ICollection<T> Children
        {
            get;
        }
        int Layer
        {
            get;
        }
    }
}
